package com.darren.euc.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name = "euc_contract_templetes")
public class ContractTemplate extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 7225410464606595171L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	/**
	 * 合同类型：1 入驻协议，2 退租协议,3 增租协议,3 续租协议
	 */
	@Column(name = "contract_type")
	private Integer contractType;
	
	/**
	 * 合同类型名称：入驻协议，退租协议,增租协议,续租协议
	 */
	@Column(name = "contract_type_name")
	private String contractTypeName;
	
	/**
	 * 所属空间ID
	 */
	@Column(name = "space_id")
	private Integer spaceId;
	
	
	/**
	 * 所属空间名称
	 */
	@Column(name = "space_name")
	private String spaceName;
	
	/**
	 * 出租方（乙方）
	 */
	@Column(name = "partyB_name")
	private String partyBName;

	/**
	 * 出租方（乙方）  联系人
	 */
	@Column(name = "partyB_contact")
	private String partyBContact;
	
	/**
	 * 出租方（乙方）  联系电话
	 */
	@Column(name = "partyB_contact_number")
	private String partyBContactNumber;
	
	/**
	 * 出租方（乙方）  地址
	 */
	@Column(name = "partyB_address")
	private String partyBAddress;
	
	/**
	 * 出租方（乙方）  邮件
	 */
	@Column(name = "partyB_email")
	private String partyBEmail;
	
	/**
	 * 是否启用:1启用,2未启用
	 */
	 @Column(name = "status")
	 private Integer status = 2;
	 
	 /**
	  * 是否删除
	  */
	 @Column(name = "enable", nullable = false, columnDefinition = "tinyint default 1")
	 private boolean enable = true;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getContractType() {
		return contractType;
	}

	public void setContractType(Integer contractType) {
		this.contractType = contractType;
	}

	public String getContractTypeName() {
		return contractTypeName;
	}

	public void setContractTypeName(String contractTypeName) {
		this.contractTypeName = contractTypeName;
	}

	public Integer getSpaceId() {
		return spaceId;
	}

	public void setSpaceId(Integer spaceId) {
		this.spaceId = spaceId;
	}

	public String getSpaceName() {
		return spaceName;
	}

	public void setSpaceName(String spaceName) {
		this.spaceName = spaceName;
	}

	public String getPartyBName() {
		return partyBName;
	}

	public void setPartyBName(String partyBName) {
		this.partyBName = partyBName;
	}

	public String getPartyBContact() {
		return partyBContact;
	}

	public void setPartyBContact(String partyBContact) {
		this.partyBContact = partyBContact;
	}

	public String getPartyBContactNumber() {
		return partyBContactNumber;
	}

	public void setPartyBContactNumber(String partyBContactNumber) {
		this.partyBContactNumber = partyBContactNumber;
	}

	public String getPartyBAddress() {
		return partyBAddress;
	}

	public void setPartyBAddress(String partyBAddress) {
		this.partyBAddress = partyBAddress;
	}

	public String getPartyBEmail() {
		return partyBEmail;
	}

	public void setPartyBEmail(String partyBEmail) {
		this.partyBEmail = partyBEmail;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	
}
